<!-- 提现记录-->
<template>
	<view class="container">

		<view class="order-data">
            
			<view class="order-item" v-for="(item,index) in dataList"  :key="index">
                        <view>
                            <view style="display: flex;">
                                <view class="title" style="flex: 1;">提现</view>
                                <view class="title" style="flex: 1;text-align: right;">{{item.money}}</view>
                            </view>
                            <view style="display: flex;">
                                <view class="time" style="flex: 1;">{{item.createtime | timeFrom('yyyy-mm-dd') }}</view>
                                <view v-if="item.status == '0'" class="time" style="flex: 1;text-align: right;">未处理</view>
                                <view v-if="item.status == '1'" class="time" style="flex: 1;text-align: right;">提现成功</view>
                                <view v-if="item.status == '2'" class="time" style="flex: 1;text-align: right;">提现失败</view>
                            </view>
                        </view>
			</view>

	

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			stateId: 1,
            dataList:[]
			};
					
		},
		onLoad() {},
		onShow() {
		this.getData()
		},
		computed: {

		},
		methods: {
	
		getData(){
			let that=this
		    that.$api.withdrawal({
		    }).then(res => {
		        console.log('res',res)
		        if(res.code ==1){
                    that.dataList=res.data.w_data
		        }
		    });
		},
		},
	}
</script>

<style lang="scss" scoped>
	* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}

	.order-data{
		    padding: 0px 30rpx 0px 30rpx;
	}

	.order-item{
        line-height: 50rpx;
		border-bottom: 1px solid #EEEEEE;;
		margin-top: 36rpx;	
	}
	.title{
        font-size: 34rpx;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #010000;
    }
    .money{
        font-size: 28rpx;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #A5A5A5;
    }
    .time{
        font-size: 28rpx;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #A5A5A5;
    }
</style>
